#include "HelloWorldScene.hpp"
#include "core/Game.hpp"
#include "video/Screen.hpp"

namespace yep
{
    HelloWorldScene::~HelloWorldScene() {
        //Nothing to do.
    }
    void HelloWorldScene::setup( Game &game ) {
        // Nothing to do;
    }
    void HelloWorldScene::cleanup( Game &game ) {
        //Nothing to do.
    }
    void HelloWorldScene::logic( Game &game ) {
        SDL_Event event;

        while( SDL_PollEvent( &event ) ) {
            switch( event.type ) {
            case SDL_QUIT:
            case SDL_KEYDOWN:
                game.exit();
                break;
            }
        }
    }
    void HelloWorldScene::draw( Game &game ) {
        Screen &screen = Screen::getInstance();
        screen.drawText({64,0}, Color::LIGHT_CYAN, "Hi Mundo!");
    }
};
